package com.data.model.sqlclause.where.exprssion;

import com.data.model.enums.ExpressionTypeEnum;
import com.data.model.sqlclause.where.basic.AtomicCondition;
import com.data.model.sqlclause.where.basic.Expression;
import lombok.AllArgsConstructor;
import lombok.Data;


@Data
@AllArgsConstructor
public class AtomicExpression extends Expression {
    @Override
    public String getType() {
        return ExpressionTypeEnum.ATOMIC.getCode();
    }

    private AtomicCondition atomicCondition;

    public static AtomicExpression of(AtomicCondition atomicCondition) {
        return new AtomicExpression(atomicCondition);
    }
}
